#pragma once
#include<stdio.h>
#include<string.h>
#define MAX 100
#define MAX_NAME 20
#define MAX_SEX 5
#define MAX_TELE 12
#define MAX_ADDR 30

struct PeoInfo
{
	char name[MAX_NAME];
	int age;
	char sex[MAX_SEX];
	char tele[MAX_TELE];
	char addr[MAX_ADDR];
};

//contact kind
struct Contact
{
	struct PeoInfo data[MAX];// contact size
	int count;//number of existence
};
//function declaration
void InitContact(struct Contact * ps);
void AddContact(struct Contact* ps);
void DeleteContact(struct Contact* ps);
void SearchContact(struct Contact* ps);
void ShowContact(const struct Contact* ps);
void ModifyContact(struct Contact* ps);
void SortContact(struct Contact* ps);